package nba.com.adapter;

import nba.com.activity.R;
import nba.com.data.TableData;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TableLayout;

public class MatchStatisticsAdapter
{
	public static View fillData(Context context,TableData scoresTableData,TableData statisticTableData)
	{
		LayoutInflater mInflater = LayoutInflater.from(context);
		View view=mInflater.inflate(R.layout.match_sub_statistic, null);
		
		TableLayout scoresTableLayout=(TableLayout)view.findViewById(R.id.match_segment_table);//match_statistic_table
	    TableAdapter.fillTable(scoresTableData, scoresTableLayout);
	    
	    TableLayout statisticTableLayout=(TableLayout)view.findViewById(R.id.match_statistic_table);//match_statistic_table
	    TableAdapter.fillTable(statisticTableData, statisticTableLayout);
		
		return view;
	}
}
